package org.schrag.sbbdroid.data;

import java.io.Serializable;
import java.util.Date;
import java.util.LinkedList;

public class Connection  implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String duration;
	private String changeTrack;
	private long startTime;
	private long endTime;
	private String from;
	private String to;	
	private String durationInfo;	
	private LinkedList<Part> parts = new LinkedList<Part>();

	/**
	 * @return the duration
	 */
	public String getDuration() {
		return duration;
	}

	/**
	 * @param duration the duration to set
	 */
	public void setDuration(String duration) {
		this.duration = duration;
	}

	/**
	 * @return the changeTrack
	 */
	public String getChangeTrack() {
		return changeTrack;
	}

	/**
	 * @param changeTrack the changeTrack to set
	 */
	public void setChangeTrack(String changeTrack) {
		this.changeTrack = changeTrack;
	}

	/**
	 * @return the startTime
	 */
	public Date getStartTime() {
		return new Date(startTime);
	}

	/**
	 * @param startTime the startTime to set
	 */
	public void setStartTime(Date startTime) {
		this.startTime = startTime.getTime();
	}

	/**
	 * @return the endTime
	 */
	public Date getEndTime() {
		return new Date(endTime);
	}

	/**
	 * @param endTime the endTime to set
	 */
	public void setEndTime(Date endTime) {
		this.endTime = endTime.getTime();
	}

	/**
	 * @return the from
	 */
	public String getFrom() {
		return from;
	}

	/**
	 * @param from the from to set
	 */
	public void setFrom(String from) {
		this.from = from;
	}

	/**
	 * @return the to
	 */
	public String getTo() {
		return to;
	}

	/**
	 * @param to the to to set
	 */
	public void setTo(String to) {
		this.to = to;
	}

	/**
	 * @return the durationInfo
	 */
	public String getDurationInfo() {
		return durationInfo;
	}

	/**
	 * @param durationInfo the durationInfo to set
	 */
	public void setDurationInfo(String durationInfo) {
		this.durationInfo = durationInfo;
	}

	/**
	 * @return the parts
	 */
	public LinkedList<Part> getParts() {
		return parts;
	}

	/**
	 * @param parts the parts to set
	 */
	public void setParts(LinkedList<Part> parts) {
		this.parts = parts;
	}
	
	
}
